package com.fire.shop.mapper;

import com.fire.shop.domain.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface  ShopMapper {
    /**
     * <h2>查询所有仓库的方法</h2>
     */
    List<Shop> queryAllShop(Shop shop);

    /**
     * <h2>根据商铺id删除商铺</h2>
     */
    int deleteById(String id);

    /**
     * <h2>根据商铺id修改商铺的方法</h2>
     */
    int updateById(Shop shop);

    /**
     * <h2>添加shop的方法</h2>
     */
    int insert(Shop shop);


    Shop selectById(Integer id);


















    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table shop
     *
     * @mbggenerated Thu Mar 21 20:11:05 CST 2024
     */
    int insertSelective(Shop record);



    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table shop
     *
     * @mbggenerated Thu Mar 21 20:11:05 CST 2024
     */
    int updateByPrimaryKeySelective(Shop record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table shop
     *
     * @mbggenerated Thu Mar 21 20:11:05 CST 2024
     */
    int updateByPrimaryKeyWithBLOBs(Shop record);


}